package com.filesystem.file.entity;

import java.io.Serializable;
import java.util.Date;

import com.baomidou.mybatisplus.annotation.TableId;
import lombok.*;

/**
 * <p>
 * 
 * </p>
 *
 * @author JayZhou
 * @since 2021-06-10
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@Getter
@Setter
@EqualsAndHashCode
public class Files implements Serializable {



    @TableId("id")
    private int id;

    /**
     * 文件标题
     */
    private String filetitle;


    /**
     * 文件名字
     */
    private String filename;

    /**
     * 文件类型
     */
    private int filetype;

    /**
     * 用户
     */
    private String username;

    /**
     * 文件是否可见 	1为所有人可见	2为不可见	3仅自己可见
     */
    private Integer filevisible;

    /**
     * 文件后缀名
     */
    private String filesuffix;

    /**
     * 上传时间
     */
    private Date date;



    public Files(String filename, String filetitle, int filetype ,String username , String fileSuffix, Date date) {
        this.filename = filename;
        this.filetitle = filetitle;
        this.filetype = filetype;
        this.username = username;
        this.filesuffix = fileSuffix;
        this.date = date;
    }

    public String getFilename() {
        return filename;
    }

    public String getFilepath() {
        return filetitle;
    }

    public String getFilesuffix() {
        return filesuffix;
    }

    public void setFilename(String filename) {
        this.filename = filename;
    }

    public void setFilepath(String filepath) {
        this.filetitle = filepath;
    }

    public void setFilesuffix(String filesuffix) {
        this.filesuffix = filesuffix;
    }



}
